package ch00.ch01;

/**
 * @Author lzp
 * @Date 2024-04-02
 */

public class Student {
    private String name;

    @CheckAge(age=18)
    private int age;

    public Student(String name, int age) {
        this.name = name;
        this.age = age;
    }

    public void Stu(String name,int age){
        System.out.println(""+name);
        System.out.println(""+age);
    }

    public Student() {
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }
}
